package com.guigu.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.erp.pojo.SystemMenus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName:SystemMenusMapper
 * Package:com.guigu.erp.mapper
 * Description:
 *
 * @Date:2024/5/5 10:19
 * @Author:chenchong
 */
public interface SystemMenusMapper extends BaseMapper<SystemMenus> {
    @Select("select * from sys_menus where parent_id is null")
    List<SystemMenus> getById();

    List<SystemMenus> getChildren(Integer pid);


}
